package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * 通讯录实体类
 *
 * @author wzw
 * @date 2022/4/27 11:44
 */

@TableName("address_book")
public class AddressBook {
    /**
     * id 主键自增id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * name 姓名
     */
    private String name;

    /**
     * phone 电话
     */
    private String phone;

    /**
     * birthday 生日
     */
    private String birthday;

    /**
     * remark 备注
     */
    private String remark;

    /**
     * creat_time 创建时间
     */
    private Date createTime;

    /**
     * modified_time 修改时间
     */
    private Date modifiedTime;

    public void setId(Long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPhone() {
        return phone;
    }

    public String getBirthday() {
        return birthday;
    }

    public String getRemark() {
        return remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }
}
